﻿using MongoDB.Bson.Serialization.Attributes;
using System.Collections.Generic;

namespace ApiManage.Models.MongoMappings.Sys
{
    /// <summary>
    /// 
    /// </summary>
    public class SysMenu : BaseMongoRecord
    {
        /// <summary>
        /// 
        /// </summary>

        public string MenuUp { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string MenuName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string MenuUrl { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public string MenuIcon { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? Sort { get; set; }
        /// <summary>
        /// 
        /// </summary>
        public int? Mark { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [BsonIgnore]
        public int MenuId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [BsonIgnore]
        public string KeyStr { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [BsonIgnore]
        public List<SysMenu> Children { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [BsonIgnore]
        public List<SysButton> Button { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [BsonIgnore]
        public List<SysColumn> Column { get; set; }
    }

    /// <summary>
    /// 
    /// </summary>
    public class SysMenuExtend : SysMenu
    {
        /// <summary>
        /// 
        /// </summary>
        public new string Id { get; set; }
    }
}
